package biz.impl;

import java.util.List;

import biz.interfaces.IGroupBiz;
import dao.GroupDAO;
import entity.Group;

class GroupBiz implements IGroupBiz {

	private GroupDAO groupDAO = null;

	@Override
	public void AddGroup(Group group) {
		groupDAO.AddGroup(group);

	}

	@Override
	public void AddGroupList(List<Group> groupList) {
		for (Group group : groupList)
			AddGroup(group);

	}

	@Override
	public List<Group> GetGroupListByUserID(int userid) {
		return groupDAO.getGroupByuserId(userid);
	}

	public void setGroupDAO(GroupDAO groupDAO) {
		this.groupDAO = groupDAO;
	}

}
